View Issue Details

IDProjectCategoryView StatusLast Update
0001445K18X001.00 SKB SWANSWpublic2024-05-20 09:00
Reporter(ALTech) Sangmin Choi Assigned To(ALTech) Sangmin Choi Due Date2022-03-25 16:42
PriorityurgentSeveritys4-minorReproducibilitysometimes
Status closedResolutionfixed 
Summary0001445: When I play some contents of AppleTV+, it stopped after 10 or 20 minutes.
DescriptionSKB has plan to launch the AppleTV+.

Not only SKB launch the Apple TV device, but also SKB launch the AppleTV+ APK on their devices, such as Smart3 or SWAN.

FYI, there was a modification of memory map to fix Youtube 8K issue.
https://mantis.cnsbg.foxconn.com/vaas/view.php?id=1394

Before modify the memory map, there were many error message about out of memory.
And, the playing of contents were stopped frequently.

After modify the memory map, it's hard to see the error message of memory.
But, when I play some contents it stopped after 10 or 20 minutes.
It reproduces almost every time.

Could you please check it?

You should test with firmware which is built after 20220315.
http://altserver01.iptime.org/release_by_fxn/swan_nightly/SD_IMG/BFX-UA300_20220315_SD_v532r17_D417/manifest.diff
Additional InformationSKB Jira : https://jira.skbroadband.com/browse/BTVSBOX-607
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

(ALTech) Sangmin Choi

2022-03-21 15:56

developer  

app-release.apk (20,045,779 bytes)

(ALTech) Sangmin Choi

2022-03-21 15:56

developer  

(ALTech) Sangmin Choi

2022-03-21 15:58

developer   ~0009656

Please install the APK and you can use following account for testing.

ID : p24g38b_maril.284260@icloud.com
PW : Cranberry1798&

You can reproduce this issue for playing the Morning Show Season 1.

(SW) Jacky Chiang

2022-03-21 17:47

manager   ~0009660

Hi Sangmin,

    We will request Synaptics to support generating new TA, which enlarge secure memory to try if it can play successfully with not hitting peak value of bit rate from Apple TV content.
The jira number is 175 and you also can refer to it. By then, we need your help to test IPTV/VOD function in SKB environment if Synaptics can adjust a suitable secure memory size to have Apple TV content played well.

(SW) Jason Ling

2022-03-21 19:01

developer   ~0009661

Hi Sangmin,

I ran the test for over 30 minutes and I haven't reproduced it yet.

Could you test again with the following FW, this FW will help us to know memory usage.
http://altserver01.iptime.org/release_by_fxn/swan_test_image/19.532.927/

Please provide logcat and let us know the timestamp when the problem occurred
When issue occurred, please also give us the memory information
BFX-UA300:/ # su
BFX-UA300:/ # cat /sys/kernel/debug/ion/meminfo

Thanks

(ALTech) Sangmin Choi

2022-03-22 10:19

developer   ~0009667

Hi, Jason,

First, I didn't find the perfect step to reproduce.
Sometimes, it reproduced without any operations and it also reproduced when I stop/start the content or fast forward/rewind the content.
Please test with some operations and help me to find the reproduce step.

Please check the attached log file.
I missed capturing the meminfo, I will update later.

The video stopped with following log messages.
03-22 09:58:44.053 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.053] TC4817230 [JavaScript] Metrics config: No config provided via delegate or fetched via init(), using default/cached config values.
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] qos-message-default {
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] country: [ 'KR' ],
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] state: undefined,
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] locale: 'ko',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] deviceName: 'Android',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] deviceModel: 'BFX-UA300',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] deviceFamily: 'ATVE',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] os: 'Android',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] osVersion: '10',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] appVersion: '10.0.0',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] hlsjsVersion: '2.160.8',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] firmwareVersion: 'QT19.532.917-20220316',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] adamId: '1481541131',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] serviceId: 'tvs.vds.4105',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] brandId: 'tvs.sbd.4000',
03-22 09:58:44.073 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] contentType: 'VOD',
03-22 09:58:44.074 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.073] TC4817230 [JavaScript] errorCode: 'nativePlayerMediaError',
03-22 09:58:44.074 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.074] TC4817230 [JavaScript] title: '비디오를 이용할 수 없음',
03-22 09:58:44.074 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.074] TC4817230 [JavaScript] body: '비디오를 로드하는 중 문제가 발생했습니다.
03-22 09:58:44.074 com.apple.atve.androidtv.appletv 4992 6044 V Luna [2022-03-22 09:58:44.074] TC4817230 [JavaScript] } {} {}

(SW) Jason Ling

2022-03-22 18:14

developer   ~0009671

Hi Sangmin

Could you provide the information of meminfo?

I think it's hard to reproduce it on our side.
We need to use VPN to login SKB UI, but if we use VPN to test AppleTv, We sometimes can not pull high resolution video content from streaming server due to low network speed.
The low resolution video can not reproduced memory-related issue.

If we launch AppleTv and change the network to Taiwan network. I can see Video Stop symptoms sometimes. But it's hard to clarify if the symptoms come from the SKB network policy (if the network is not a Korean network, the network will reset periodically)

(ALTech) Sangmin Choi

2022-03-23 08:56

developer   ~0009675

Hi, Jason,

Please check the attached meminfo files.

meminfo_after_no_memory
-> There were some messages like followings. I got the meminfo after following messages were printed.
03-23 09:19:53.609 com.apple.atve.androidtv.appletv 3607 12061 E ACodec dequeueBuffer failed: NO_MEMORY(-12).
03-23 09:19:53.655 com.apple.atve.androidtv.appletv 3607 12061 E ACodec dequeueBuffer failed: NO_MEMORY(-12).
03-23 09:19:53.691 com.apple.atve.androidtv.appletv 3607 12061 E ACodec dequeueBuffer failed: NO_MEMORY(-12).

meminfo_after_stop_content
-> I got the meminfo after the content was stopped.

And, there are some error messages like followings and it's easy to reproduce this issue when you see following messages.
Also FF/RW or play again the content or play other content will help to reproduce easier.

03-23 09:19:53.609 com.apple.atve.androidtv.appletv 3607 12061 E ACodec dequeueBuffer failed: NO_MEMORY(-12).
03-23 09:19:53.655 com.apple.atve.androidtv.appletv 3607 12061 E ACodec dequeueBuffer failed: NO_MEMORY(-12).
03-23 09:19:53.691 com.apple.atve.androidtv.appletv 3607 12061 E ACodec dequeueBuffer failed: NO_MEMORY(-12).

03-23 09:47:40.836 com.apple.atve.androidtv.appletv 3607 11615 E NdkMediaCodec sf error code: -38
03-23 09:47:40.846 com.apple.atve.androidtv.appletv 3607 11615 E NdkMediaCodec sf error code: -38
03-23 09:47:40.856 com.apple.atve.androidtv.appletv 3607 11615 E NdkMediaCodec sf error code: -38

I'm not sure this issue was related with memory map, but there were many content stops before modify the memory map.
meminfo_after_stop_content (1,724 bytes)   
BFX-UA300:/ # cat /sys/kernel/debug/ion/meminfo
Marvell Berlin ION information
------------------------------------
heap_id [ 0]  heap_name [ NonSecure]
attri [0x00000f36] type [         2]
algorithm_type  [  0]   [ first fit]
defer_free      [  0]   [   disable]
start [0x41c00000] size [ 520093696]
used size [0x07e74000]  [ 132595712]
free size [0x1718c000]  [ 387497984]

tony debug buffer_used size [0x07e74000]  [ 132595712]

tony debug buffer_peak size [0x1e17e000]  [ 504881152]

------------------------------------
heap_id [ 1]  heap_name [NonSecure-NC]
attri [0x00000f3a] type [         5]
algorithm_type  [  0]   [ first fit]
defer_free      [  0]   [   disable]
start [0x60c00000] size [  20971520]
used size [0x00454000]  [   4538368]
free size [0x00fac000]  [  16433152]

tony debug buffer_used size [0x00454000]  [   4538368]

tony debug buffer_peak size [0x0050a000]  [   5283840]

------------------------------------
heap_id [ 2]  heap_name [    Secure]
attri [0x00000f3d] type [         5]
algorithm_type  [  0]   [ first fit]
defer_free      [  0]   [   disable]
start [0x62000000] size [ 503316480]
used size [0x08f08000]  [ 149979136]
free size [0x150f8000]  [ 353337344]

tony debug buffer_used size [0x08f08000]  [ 149979136]

tony debug buffer_peak size [0x1b96d000]  [ 462868480]

------------------------------------
heap_id [ 3]  heap_name [system-ion]
attri [0x00000000] type [         0]
algorithm_type  [  0]   [ first fit]
defer_free      [  0]   [   disable]
start [0x00000000] size [         0]
used size [0x00111000]  [   1118208]
free size [0xffffffffffeef000]  [  -1118208]

tony debug buffer_used size [0x00111000]  [   1118208]

tony debug buffer_peak size [0x00513000]  [   5320704]
meminfo_after_stop_content (1,724 bytes)   
meminfo_after_no_memory (1,724 bytes)   
BFX-UA300:/ # cat /sys/kernel/debug/ion/meminfo
Marvell Berlin ION information
------------------------------------
heap_id [ 0]  heap_name [ NonSecure]
attri [0x00000f36] type [         2]
algorithm_type  [  0]   [ first fit]
defer_free      [  0]   [   disable]
start [0x41c00000] size [ 520093696]
used size [0x09633000]  [ 157495296]
free size [0x159cd000]  [ 362598400]

tony debug buffer_used size [0x09633000]  [ 157495296]

tony debug buffer_peak size [0x17e5e000]  [ 400941056]

------------------------------------
heap_id [ 1]  heap_name [NonSecure-NC]
attri [0x00000f3a] type [         5]
algorithm_type  [  0]   [ first fit]
defer_free      [  0]   [   disable]
start [0x60c00000] size [  20971520]
used size [0x00502000]  [   5251072]
free size [0x00efe000]  [  15720448]

tony debug buffer_used size [0x00502000]  [   5251072]

tony debug buffer_peak size [0x00508000]  [   5275648]

------------------------------------
heap_id [ 2]  heap_name [    Secure]
attri [0x00000f3d] type [         5]
algorithm_type  [  0]   [ first fit]
defer_free      [  0]   [   disable]
start [0x62000000] size [ 503316480]
used size [0x13fe1000]  [ 335417344]
free size [0x0a01f000]  [ 167899136]

tony debug buffer_used size [0x13fe1000]  [ 335417344]

tony debug buffer_peak size [0x1b3e5000]  [ 457068544]

------------------------------------
heap_id [ 3]  heap_name [system-ion]
attri [0x00000000] type [         0]
algorithm_type  [  0]   [ first fit]
defer_free      [  0]   [   disable]
start [0x00000000] size [         0]
used size [0x0025f000]  [   2486272]
free size [0xffffffffffda1000]  [  -2486272]

tony debug buffer_used size [0x0025f000]  [   2486272]

tony debug buffer_peak size [0x00513000]  [   5320704]
meminfo_after_no_memory (1,724 bytes)   
20220323_apple_tv_test.log (7,321,298 bytes)

(SW) Jason Ling

2022-03-23 09:55

developer   ~0009676

Hi Sangmin,

I created a ticket as follows,
https://synaextjira.atlassian.net/browse/SKBSBALT-181
you can also monitor it.

Thanks,
Jason

(SW) Jason Ling

2022-03-23 16:41

developer   ~0009683

Hi Sangmin,

Synaptics once released a larger secure memory layout (the size of secure memory is 532M) to us, I think we can try this patch first.
(Currently, the size of secure memory is 480M)

I have uploaded the test build, please check the following link,
http://altserver01.iptime.org/release_by_fxn/tmp/532M/usb_bfx-ua300_V19.532.17_SD.zip

You can use the following command to check the version of the test build.
BFX-UA300:/ # su
BFX-UA300:/ # getprop ro.vendor.vasott.version
v532r532-20220323

Please let us know if there are any improvements. If you still can reproduce it with this test image, please also share memory information and logcat to us.

Thanks,
Jason

(SW) Jason Ling

2022-03-24 10:53

developer   ~0009689

Hi Sangmin,

Synaptics FAE Tony released 2 patches yesterda

I have uploaded the test image including these 2 patches. You can verify it on your side. (The size of secure memory is still 480M)

http://altserver01.iptime.org/release_by_fxn/tmp/Jira181/usb_bfx-ua300_V19.532.17_SD.zip

You can use the following command to check the version of the test build.
BFX-UA300:/ # su
BFX-UA300:/ # getprop ro.vendor.vasott.version
v532rjira181-20220324

(ALTech) Sangmin Choi

2022-03-24 15:04

developer   ~0009695

Hi, Jason,

This is just update current status.

I tested your firmware but there are still several issues on AppleTV+.
Synaptics is working this issue with priority.

Thank you.

(SW) Jason Ling

2022-03-30 14:20

developer   ~0009746

Hi Sangmin,

Synaptics Kail has created https://synaextjira.atlassian.net/browse/SKBSBALT-182 to discuss AppleTv issue, so I closed https://synaextjira.atlassian.net/browse/SKBSBALT-181

(ALTech) Sangmin Choi

2024-05-20 09:00

developer   ~0015851

There is no issue on AppleTV+ now, I want to close it.

Issue History

Date Modified Username Field Change
2022-03-21 15:55 (ALTech) Sangmin Choi New Issue
2022-03-21 15:55 (ALTech) Sangmin Choi Status new => assigned
2022-03-21 15:55 (ALTech) Sangmin Choi Assigned To => (SW) Jacky Chiang
2022-03-21 15:56 (ALTech) Sangmin Choi File Added: app-release.apk
2022-03-21 15:56 (ALTech) Sangmin Choi Additional Information Updated
2022-03-21 15:56 (ALTech) Sangmin Choi File Added: BTVSBOX-607_AppleTV_19.532.16.log
2022-03-21 15:56 (ALTech) Sangmin Choi File Added: BTVSBOX-607_AppleTV_19.532.17_20220321_2.log
2022-03-21 15:56 (ALTech) Sangmin Choi File Added: BTVSBOX-607_AppleTV_19.532.17_20220321_3.log
2022-03-21 15:56 (ALTech) Sangmin Choi File Added: BTVSBOX-607_AppleTV_19.532.17_20220321.log
2022-03-21 15:58 (ALTech) Sangmin Choi Note Added: 0009656
2022-03-21 17:37 (SW) Jacky Chiang Assigned To (SW) Jacky Chiang => (SW) Jason Ling
2022-03-21 17:47 (SW) Jacky Chiang Note Added: 0009660
2022-03-21 19:01 (SW) Jason Ling Note Added: 0009661
2022-03-21 19:03 (SW) Jason Ling Severity s2-severe => s4-minor
2022-03-22 10:19 (ALTech) Sangmin Choi File Added: 20220322_19.532.927_content_stop.log
2022-03-22 10:19 (ALTech) Sangmin Choi Note Added: 0009667
2022-03-22 18:14 (SW) Jason Ling Note Added: 0009671
2022-03-23 08:56 (ALTech) Sangmin Choi File Added: meminfo_after_stop_content
2022-03-23 08:56 (ALTech) Sangmin Choi File Added: meminfo_after_no_memory
2022-03-23 08:56 (ALTech) Sangmin Choi File Added: 20220323_apple_tv_test.log
2022-03-23 08:56 (ALTech) Sangmin Choi Note Added: 0009675
2022-03-23 09:55 (SW) Jason Ling Note Added: 0009676
2022-03-23 16:41 (SW) Jason Ling Note Added: 0009683
2022-03-24 10:53 (SW) Jason Ling Note Added: 0009689
2022-03-24 15:04 (ALTech) Sangmin Choi Note Added: 0009695
2022-03-30 14:20 (SW) Jason Ling Note Added: 0009746
2024-05-09 11:22 (ALTech) Sangmin Choi Issue cloned: 0001942
2024-05-20 09:00 (ALTech) Sangmin Choi Assigned To (SW) Jason Ling => (ALTech) Sangmin Choi
2024-05-20 09:00 (ALTech) Sangmin Choi Status assigned => closed
2024-05-20 09:00 (ALTech) Sangmin Choi Resolution open => fixed
2024-05-20 09:00 (ALTech) Sangmin Choi Note Added: 0015851